package com.ys.entity.logistics;

import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TL_DecCustomSub", catalog="Id")
public class TlDecCustomSub extends BaseEntity<TlDecCustomSub> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="DecCustomBoxProductId", nameJava="decCustomBoxProductId", typeDataBase="bigint")
	private Long decCustomBoxProductId;
	@YsField(nameDataBase="ComponentId", nameJava="componentId", typeDataBase="bigint")
	private Long componentId;
	@YsField(nameDataBase="ContractId", nameJava="contractId", typeDataBase="bigint")
	private Long contractId;
	@YsField(nameDataBase="NumDecCustom", nameJava="numDecCustom", typeDataBase="int")
	private Integer numDecCustom;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TlDecCustomSub setId(Long id) {
		this.id = id;
		return this;
	}
	public Long getDecCustomBoxProductId() {
		return decCustomBoxProductId;
	}
	public TlDecCustomSub setDecCustomBoxProductId(Long decCustomBoxProductId) {
		this.decCustomBoxProductId = decCustomBoxProductId;
		return this;
	}
	public Long getComponentId() {
		return componentId;
	}
	public TlDecCustomSub setComponentId(Long componentId) {
		this.componentId = componentId;
		return this;
	}
	public Long getContractId() {
		return contractId;
	}
	public TlDecCustomSub setContractId(Long contractId) {
		this.contractId = contractId;
		return this;
	}
	public Integer getNumDecCustom() {
		return numDecCustom;
	}
	public TlDecCustomSub setNumDecCustom(Integer numDecCustom) {
		this.numDecCustom = numDecCustom;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TlDecCustomSub setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TlDecCustomSub setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TlDecCustomSub setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TlDecCustomSub tlDecCustomSub(
		Long decCustomBoxProductId,
		Long componentId,
		Long contractId,
		Integer numDecCustom,
		Integer status
			) {
		TlDecCustomSub entity = new TlDecCustomSub();
		entity.setDecCustomBoxProductId(decCustomBoxProductId);
		entity.setComponentId(componentId);
		entity.setContractId(contractId);
		entity.setNumDecCustom(numDecCustom);
		entity.setStatus(status);
		return entity;
	}
}